import * as tslib_1 from "tslib";
import { Entity, NgField, NgEntity } from '@farris/devkit';
var NewObject1Entity = /** @class */ (function (_super) {
    tslib_1.__extends(NewObject1Entity, _super);
    function NewObject1Entity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ParentID',
            dataField: 'parentID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ParentID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "parentID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'code',
            dataField: 'code',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'code',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "code", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'note',
            dataField: 'note',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'note',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "note", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'creator',
            dataField: 'creator',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'creator',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "creator", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'createdDate',
            dataField: 'createdDate',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'createdDate',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "createdDate", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'kssj',
            dataField: 'kssj',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'kssj',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "kssj", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'endingdate',
            dataField: 'endingdate',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'endingdate',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "endingdate", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'cxfs',
            dataField: 'cxfs',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'cxfs',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "cxfs", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'cxje',
            dataField: 'cxje',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'cxje',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "cxje", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'sfybt',
            dataField: 'sfybt',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'sfybt',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "sfybt", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'btbz',
            dataField: 'btbz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'btbz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject1Entity.prototype, "btbz", void 0);
    NewObject1Entity = tslib_1.__decorate([
        NgEntity({
            originalCode: "newObject1",
            nodeCode: "newObject1s"
        })
    ], NewObject1Entity);
    return NewObject1Entity;
}(Entity));
export { NewObject1Entity };
